.box {
  height:100%;
  padding: 0 20px;
  color: #fff;
  overflow: scroll;
}

.box:before {
  content: '';
  display: block;
  height: 100px;
  line-height: 100px;
  text-align: center;
  margin-top: 40px;
  font-size: 30px;
  color: #999;
}

.box.ready:before {
  content: '正在初始化...';
}

.box.loading:before {
  background: url(~asset/loading.gif) center/auto 100% no-repeat;
}

.box.empty:before {
  content: '暂无聊天数据';
}

.box.nomore:before {
  content: '已经到顶啦';
}

.box:after {
  content: '';
  display: block;
  height: 198px;
}

.item {
  margin-top: 20px;
  transition: margin-top 500ms;
}

.item .time {
  text-align: center;
  font-size: 20px;
  line-height: 60px;
}

.item .flex {
  display: flex;
  transition: height 500ms;
  overflow: hidden;
}

.item .left {
  width: 88px;
}

.item .left .avatar {
  position: relative;
  width: 88px;
  height: 88px;
}

.item .left .avatar>img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 1px solid #fff;
  pointer-events: none;
  border-radius: 50%;
  object-fit: cover;
}

.item .left .avatar.man>img {
  border-color: #4facfe;
}

.item .left .avatar.woman>img {
  border-color: #fbc2eb;
}

.item .left .gag {
  width: 80px;
  color: #EFA6FF;
  line-height: 30px;
  font-size: 20px;
  margin: 14px auto 10px;
  text-align: center;
}

.item .right {
  width: 480px;
  margin-left: 20px;
}

.item .right .head {
  word-wrap: break-word;
}

.item .right .nick {
  display: inline-block;
  vertical-align: middle;
  font-size: 26px;
  margin-left: 6px;
}

.item .right .sex {
  display: inline-block;
  vertical-align: middle;
  width: 26px;
  height: 26px;
  margin-left: 10px;
  background: center/contain no-repeat;
}

.item .right .sex.man {
  background-image: url(~asset/icon_sex_man.png);
}

.item .right .sex.woman {
  background-image: url(~asset/icon_sex_woman.png);
}

.item .right .body {
  position: relative;
  display: inline-block;
  max-width: 100%;
  min-height: 52px;
  line-height: 40px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px 1px #22c3ff;
}

.item .right .body .title {
  min-width: 240px;
  height: 60px;
  text-align: center;
  line-height: 80px;
  font-size: 30px;
  font-weight: bold;
  color: #EFA6FF;
  margin-bottom: 10px;
  position: relative;
  padding: 0 30px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.item .right .body .words {
  line-height: 40px;
  font-size: 26px;
  padding: 18px 20px;
  word-break: break-word;
}

.item .right .body .words>img {
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

.item .right .body .imgs {
  padding-left: 30px;
  text-align: center;
}

.item .right .body .imgs:first-child {
  padding-top: 30px;
}

.item .right .body .imgs>span {
  position: relative;
  display: inline-block;
  width: 180px;
  height: 180px;
  overflow: hidden;
  vertical-align: top;
  margin: 0 30px 30px 0;
  text-align: left;
  background: #eee;
}

.item .right .body .imgs>span>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item .right .body .imgs>.video:after {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 60px;
  height: 60px;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background: url(~asset/icon_pause.png) center/100% 100%;
}

.item .right .body .btnBox {
  min-width: 240px;
}

.item .right .body .btn {
  position: relative;
  width: 150px;
  height: 50px;
  margin: 10px auto;
}

.item .right .body .btn:before,
.item .right .body .btn:after {
  content: attr(data-t);
  position: absolute;
  width: 100%;
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-size: 26px;
  text-align: center;
  border: 2px solid;
  border-radius: 10px;
}

.item .right .body .btn:before {
  color: #00FFF0;
  border-color: #00FFF0;
}

.item .right .body .btn:after {
  color: #D052FF;
  border-color: #D052FF;
  mask: linear-gradient(to left, black, transparent);
}


.item .right .body .btn>img {
  width: 150px;
  height: 46px;
  vertical-align: middle;
}

.item .right .foot {
  font-size: 22px;
  line-height: 40px;
  margin-top: 10px;
  color: #ccc;
}

.item .right .foot .line {
  margin: 0 20px;
}

.item .right .foot .line:first-child {
  display: none;
}